package io.renren.modules.substation.service.impl;

import io.renren.modules.substation.entity.DevDetailInfo;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.substation.dao.TPointInfoDataConfDao;
import io.renren.modules.substation.entity.TPointInfoDataConfEntity;
import io.renren.modules.substation.service.TPointInfoDataConfService;


@Service("tPointInfoDataConfService")
public class TPointInfoDataConfServiceImpl extends ServiceImpl<TPointInfoDataConfDao, TPointInfoDataConfEntity> implements TPointInfoDataConfService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<TPointInfoDataConfEntity> page = this.page(
                new Query<TPointInfoDataConfEntity>().getPage(params),
                new QueryWrapper<TPointInfoDataConfEntity>()
        );

        return new PageUtils(page);
    }

    @Override
    public int updateByAddAndType(TPointInfoDataConfEntity tPointInfoDataConfEntity) {
        return baseMapper.updateByAddAndType(tPointInfoDataConfEntity);
    }

    @Override
    public  List<TPointInfoDataConfEntity> initAllSimple() {
        return baseMapper.initAllSimple();
    }


    @Override
    public List<DevDetailInfo> queryPointInfoDataConfByCondition(DevDetailInfo tPointInfoDataConfEntity)
    {
        return baseMapper.queryPointInfoDataConfByCondition(tPointInfoDataConfEntity);
    }

}